package com.xs.aifitnessagent.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @author lambor
 */
@TableName(value = "t_user")
@Data
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**用户名**/
    private String username;

    /**密码**/
    private String password;

    /**头像**/
    private String photo;

    /**手机号**/
    private String phone;

    /**状态，0 - 正常， 1 - 异常**/
    private Integer status;

    /**删除标志，0 - 不删除， 1 - 删除**/
    private Integer deleted;

    /**创建时间**/
    private Date createTime;

    /**更新时间**/
    private Date updateTime;

    /**更新人**/
    private String updateOperator;

    /**创建人**/
    private String createOperator;

    /**每天可以使用大模型的次数**/
    private Integer usecount;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
